<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>添加用户</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('add')}" method="post" class="form form-horizontal" id="form">
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>用户等级：</label>
            <div class="formControls col-6">
                <span class="select-box">
                <select class="select" size="1" name="level_id">
                    <volist name=":getLevelList()" id="item">
                        <option value="{$item.id}">{$item.title}</option>
                    </volist>
                </select>
                </span>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>用户名：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="name" datatype="*" nullmsg="不能为空">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>密码：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="pwd" datatype="*6-18" nullmsg="不能为空" onfocus="this.type='password'">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>密码确认：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="pwd2" datatype="*6-18" nullmsg="不能为空" onfocus="this.type='password'" errormsg="您两次输入的密码不一致！" recheck="pwd">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>头像：</label>
            <div class="formControls col-6">
                <input type="file" class="input-text" placeholder="请输入" name="coverFile">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>性别：</label>
            <div class="formControls col-6">
                <span class="select-box">
                <select class="select" size="1" name="gender">
                    <option value="" selected="" disabled="disabled">请选择</option>
                    <option value="1" <if condition="$data['gender'] eq 0">selected</if>>男</option>
                    <option value="0" <if condition="$data['gender'] eq 1">selected</if>>女</option>
                </select>
                </span>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>年龄：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="age">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>出生日期：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="birthday" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'});">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>真实姓名：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="true_name">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>昵称：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="nick">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>手机号：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="phone">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>邮箱：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="email">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>积分：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="integral">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>描述：</label>
            <div class="formControls col-6">
                <input type="text" class="input-text" placeholder="请输入" name="describe">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <div class="col-6 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
<include file="Common:footer_include"/>
</body>
</html>